Systems and methods for implementing cross-fading, interstitials and other effects downstream

ABSTRACT

Systems and methods are presented for cross-fading (or other multiple clip processing) of information streams on a user or client device, such as a telephone, tablet, computer or MP3 player, or any consumer device with audio playback. Multiple clip processing can be accomplished at a client end according to directions sent from a service provider that specify a combination of (i) the clips involved; (ii) the device on which the cross-fade or other processing is to occur and its parameters; and (iii) the service provider system. For example, a consumer device with only one decoder, can utilize that decoder (typically hardware) to decompress one or more elements that are involved in a cross-fade at faster than real time, thus pre-fetching the next element(s) to be played in the cross-fade at the end of the currently being played element. The next elements(s) can, for example, be stored in an input buffer, then decoded and stored in a decoded sample buffer, all prior to the required presentation time of the multiple element effect. At the requisite time, a client device component can access the respective samples of the decoded audio clips as it performs the cross-fade, mix or other effect. Such exemplary embodiments use a single decoder and thus do not require synchronized simultaneous decodes.

CROSS REFERENCE TO RELATED APPLICATIONS

This application is a continuation of U.S. patent application Ser. No.16/216,635, filed on Dec. 11, 2018, which issued on Jun. 9, 2020 as U.S.Pat. No. 10,152,984, which is a divisional of U.S. patent applicationSer. No. 15/714,095, filed on Sep. 25, 2017, which issued on Dec. 11,2018 as U.S. Pat. No. 10,152,984, which is a continuation of U.S. patentapplication Ser. No. 15/222,256, filed on Jul. 28, 2016, which issued onAug. 2, 2016 as U.S. Pat. No. 9,406,303, which is a continuation of U.S.patent application Ser. No. 14/358,919, filed on May 16, 2014, which isa U.S. National Phase filing on International Application NoPCT/US2012/065943, filed on Nov. 19, 2012, which claims the benefit ofUnited States Provisional Patent Application Nos. (i) 61/561,593, filedon Nov. 18, 2011, (ii) 61/631,440, filed on Jan. 3, 2012, (iii)61/607,532, filed on Mar. 6, 2012, and (iv) 61/687,049, filed on Apr.17, 2012, the disclosure of each of which is hereby fully incorporatedherein by reference.

TECHNICAL FIELD

The present invention relates to digital media delivery and playback,and in particular to systems and methods for implementing cross-fading,interstitials and other effects and/or processing of two or more mediaelements on a downstream device for various purposes. One exemplarypurpose can include the replication, to the extent possible, of thefeel, sound and flow of broadcast programming.

BACKGROUND OF THE INVENTION

Media delivery has historically followed a broadcast type model, whereusers/consumers all receive the same programming. Thus, any effects,cross-fades or other blending between subsequent clips or programelements are performed upstream of the consuming device, prior to beingsent over the broadcast channel(s). As is generally appreciated, theaddition of these effects produces a high quality experience for theuser, and also provides natural and enhanced transitions between programelements. These enhancements can significantly improve and enrich thelistening experience, and can be changed or modified depending upon the“mood” of the channel, the sequence of songs or clips being played, aswell as the audience type, time of day, and channel genre. Typically,elements that require cross-fading, blending or other signal processingof two or more elements require precise synchronization and simultaneousplayback of the elements to be processed. Thus, although in the 1960sand 1970s DJs would try to mix songs in real time, by “cueing up” thenext song and starting its turntable a bit before the currently beingplayed song ended, with the advent of digital media it has become thenorm to perform such processing on a playlist of multiple songs or clipsprior to broadcasting it, storing its result at the media provider orbroadcaster's servers, and then send it over the broadcast channel.

With the introduction of media compression and file based delivery,various types of media are commonly downloaded directly to a user'sdevice, such as, for example, an iPod, digital media player, MP3 player,PC, tablet, cellular phone, smart phone, etc., and various hybriddevices or devices with equivalent functionalities, without the benefitof upstream processing between media elements. This leads to a lesssatisfactory user experience upon user consumption or playback. A usersimply hears one song stop, then hears a brief pause, then hears thenext song begin. There is no “awareness” by the media playing device asto what the sequence is, no optimizations as to which song mostnaturally follows another in the playlist, no sense of the “feel” “mood”or tempo of the playlist or any segment of it, and each sequence ofmedia clips is, in general, unique to each user and how they organizetheir respective playlists.

Additionally, many consumer type devices, cell phones, smart phones,tablets, etc. do not have the capability to perform simultaneous decodeand presentation of media and elements so that they can be cross-fadedor processed as played back in real time. Such devices, for example cellphones, typically have a single hardware decoder per media type, so thatany type of cross-fade in real time would also require additionalsoftware based decoding for the other elements, which (i) has negativeimpact on battery life, and (ii) would also require the precisesynchronization of two or more decoders.

What is needed in the art are systems and methods to implement andfacilitate cross-fading, blends, interstitials and othereffects/processing of two or more media elements on a downstream devicefor various purposes so as to enhance the listening experience, and, forexample, replicate to the extent possible the sound and feel ofbroadcast programming.

What is further needed in the art are methods to perform such processinginvolving two or more elements on a downstream device, where only asingle hardware decoder is available or where other system constraintsare operative.

BRIEF DESCRIPTION OF THE DRAWINGS

It is noted that the patent or application file may contain at least onedrawing executed in color. If that is the case, copies of this patent orpatent application publication with color drawing(s) will be provided bythe U.S. Patent and Trademark Office upon request and payment of thenecessary fee.

FIG. 1 depicts an exemplary cross fade system provided on a clientmobile device having a single decoder, according to an exemplaryembodiment of the present invention;

FIG. 2 depicts an exemplary system content distribution and receptionsystem according to an exemplary embodiment of the present invention;

FIG. 3 depicts an exemplary service provider content distribution systemfor delivering content supporting client enabled cross-fades accordingto an exemplary embodiment of the present invention;

FIG. 3A depicts a comparison of several exemplary sigmoid functions thatcan be used in exemplary embodiments of the present invention;

FIG. 4 depicts an exemplary (client side) content reception systemfeaturing (i) a single decoder and (ii) a software accessible outputbuffer for a service supporting faster than real-time client enabledcross-fades according to an exemplary embodiment of the presentinvention;

FIG. 5 depicts an exemplary content reception system featuring two ormore decoders, (but no software accessible output buffer) for a servicesupporting dual decoder, synchronized real-time client enabledcross-fades according to an exemplary embodiment of the presentinvention;

FIG. 6 depicts exemplary process flow for constructing an audio streambased on merging two separate audio files decoded faster than real timeusing the exemplary system of FIG. 4 according to an exemplaryembodiment of the present invention;

FIG. 7 depicts exemplary process flow for constructing an audio streambased on adjusting the audio volumes of two decoder outputs using theexemplary system of FIG. 5;

FIG. 8 is an exemplary system timing diagram for client based cross-fademanagement;

FIG. 9 illustrates an exemplary three element cross-fade including aclip that is faded from, a clip that is faded to, and a voice over clip,according to exemplary embodiments of the present invention;

FIG. 10 is an exemplary decision tree for fade control assignmentaccording to exemplary embodiments of the present invention;

FIG. 11 is an exemplary decision tree for clip limit selection accordingto exemplary embodiments of the present invention;

FIG. 12 is an exemplary decision tree for transition selection accordingto exemplary embodiments of the present invention;

FIG. 13 is an exemplary decision tree for concurrent layer selectionaccording to exemplary embodiments of the present invention;

FIG. 14 is an exemplary decision tree for content download/playbackselection according to exemplary embodiments of the present invention;

FIG. 15 is a chart of various dynamic decision criteria influencingalgorithm selection according to exemplary embodiments of the presentinvention; and

FIG. 16 illustrates exemplary software modules on server (upstream) andclient side (downstream) according to exemplary embodiments of thepresent invention.

SUMMARY OF THE INVENTION

Systems and methods are presented for cross-fading (or other multipleclip processing) of information streams on a user or client device, suchas a telephone, tablet, computer or MP3 player, or any consumer devicewith audio playback. Multiple clip processing can be accomplished at aclient end according to directions sent from a service provider thatspecify a combination of (i) the clips involved; (ii) the device onwhich the cross-fade or other processing is to occur and its parameters;and (iii) the service provider system. For example, a consumer devicewith only one decoder, can utilize that decoder (typically hardware) todecompress one or more elements that are involved in a cross-fade atfaster than real time, thus pre-fetching the next element(s) to beplayed in the cross-fade at the end of the currently being playedelement. The next elements(s) can, for example, be stored in an inputbuffer, then decoded and stored in a decoded sample buffer, all prior tothe required presentation time of the multiple element effect.

At the requisite time, a client device component can access therespective samples of the decoded audio clips as it performs thecross-fade, mix or other effect. Such exemplary embodiments use a singledecoder and thus do not require synchronized simultaneous decodes.

DETAILED DESCRIPTION OF THE INVENTION

In exemplary embodiments of the present invention, systems and methodscan be provided in which cross-fading (or other processing/effects) ofmultiple information streams is accomplished at a client end inaccordance with instructions that can be provided from an upstreamservice. Such instructions reflect a combination of (i) the informationclip, (ii) the device on which the cross-fade is to occur, and itsvarious parameters and capabilities, and (iii) the service providersystem.

It is noted that for ease of description herein, the term “cross-fade”will sometimes be used generically to refer to any and all type ofblending, cross-fading, cross fade or blend plus one or moreinterstitials, and interactions of every type between subsequentelements in a media playlist delivered to a user.

In what follows, for ease of description, a model will sometimes be usedwhere a service provider, such as, for example, a media delivery companyor similar entity, sends multiple clips or streams of digital media tovarious client devices, along with instructions to those devices as tohow to process those multiple clips or streams on the client device(i.e., a user's device). The client device can be, for example, owned bysubscribers of the service provider. Content and data sent by theservice provider will thus often be referred to herein as originating“upstream”, and the processing of data on a client device will similarlybe referred to as occurring “downstream,” or by a “downstreamcomponent.” In fact, while it is contemplated in some exemplaryembodiments that user devices can come pre-loaded with applications thatcan receive the instructions and process the multiple informationstreams as described herein, it is also possible, for example, to sendthe applications themselves, or updates thereto, to client devices fromthe service provider over the Internet, a VPN, or other communicationschannels, which can then be installed and run cross-fade processing.

One exemplary context in which the techniques of the present inventionare applicable is a “personalized channel” media distribution service,such as a personalized music service such as, for example, Spotify,Pandora, Grooveshark, and various others. For example, a mediadistribution company, such as, for example, an enhanced iTunes™ typeservice, or, for example, the personalized channel service beingdeveloped by the applicant hereof, Sirius XM Radio Inc., can offer itsusers personalized playlists organized by genre, type or channel. Suchplaylists can further be modified by user preferences, both explicitand/or implicit, the latter captured by “preference engines” such as aretouted by the Pandora™ service and the like. In such personalizedchannel or personalized playlist services, each individual user can, forexample, have his or her own set of media files that the serviceprovides, via the Internet or other data connection. In exemplaryembodiments of the present invention, such services can be enhanced bynot only sending a simple set of media clips or streams, but by alsosending instructions for, and managing via two-way messaging, forexample, various cross-fades, voiceovers and other “DJ” type effects orenhancements at each transition between one clip and the next. Thisgives the user or subscriber a characteristic “broadcast” or “DJ”experience, or an enhanced experience in ways that even transcend commonDJ add-ons, even when he or she is listening to her MP3 clips from, forexample, her smart phone. Alternatively, for example, one can play theirpersonalized channel through their home audio system and have theirvarious Sirius XM personalized channels supply dance music to a party,wedding or other event. In such an exemplary use, if the techniques andsystems of the present invention are fully implemented a user canessentially receive a DJ experience that is better than the vastmajority of “DJs” one can hire for a party or event.

It is noted that client devices are generally provided with a singlehardware implemented decoder. Many can have a second softwareimplemented decoder as well. Thus, in exemplary embodiments of thepresent invention, a consumer device with only one decoder, can, forexample, utilize that decoder (typically a hardware decoder) todecompress one or more elements that are involved in a cross-fade at afaster than real time rate, thus pre-fetching the next element(s) to beplayed in the cross-fade (or other multiple element effect) at the endof the element currently being played. Such exemplary embodiments makeuse of a single decoder and thus do not require synchronizedsimultaneous decodes to be managed.

FIG. 1 illustrates such a system at the conceptual level. With referencethereto, two compressed audio clips 110 and 120 can be received from aservice provider. The two audio clips can be, for example, (i)downloaded to an exemplary client device and stored in an input buffer130 on that device. They can then be (ii) sequentially decoded by asoftware or hardware decoder 140 at a rate that is faster than realtime, prior to their required presentation time, e.g. of a cross-fade,and can be, for example, respectively stored in separate portions 150,160 of a decoded sample buffer 151. Finally, they can be (iii) mixed orcross-faded by a downstream component and then output as processed audio180. The decoded audio clips and their respective samples can thus beaccessed by downstream component 175 as it performs the cross-fade, mix,blend or other effect.

For example, in a cross-fade, one mixes the samples comprising the outroof a currently being played clip, e.g. Audio Samples 1, with the samplescomprising the intro of the next clip to be played, e.g Audio Samples 2,as shown in FIG. 1. Thus, as seen in FIG. 1, Outro of Audio 1 152 canstart the cross-fade at maximum volume and end it at minimum or novolume (see descending dotted blue line with slope approximately equalto −1), and Intro of Audio 2 162 can start the cross-fade at minimumvolume and end it at maximum volume (see ascending dotted blue line withslope approximately equal to 1).

Thus, to implement a standard cross-fade, an exemplary downstreamcomponent (for example, a hardware or software module resident on aclient device) can access the first sample of Audio Samples 2 in DecodedBuffer 151 and mix it with the required audio sample(s) at the end ofAudio Samples 1, also in in Decoded Buffer 151, to implement thecross-fade. For example, if the desired effect is to cross-fade over aperiod of 1 second, then, at a sample rate of 44.1 kHz, the transitioncan use the last 44,100 samples of Clip 1 and the first 44,100 samplesof Clip 2. Using an index that provides an offset of N samples from theend of Clip 1, such as, for example, End_Clip_1-N, an exemplarydownstream cross-fade component can begin the fade at End_Clip_1—44,100and mix that sample with Clip 2, Sample 1. The next processed samplepair would be (End_Clip_1—44,099) with (Clip 2, Sample 2), andprocessing would continue in similar fashion until the final sample atthe end of Clip 1 was processed with Clip 2, Sample 44,100. As shown,the mix of these samples can, for example, be output to a user asProcessed Audio Out 180.

FIG. 2 presents an exemplary high level system architecture supportingclient side cross-fade according to exemplary embodiments of the presentinvention. The exemplary system includes a Content Service Provider 210,Distribution Channels 220, and Client Device 230. Content ServiceProvider 210 is responsible for preparing the content (such as, forexample, audio clips, video clips, voice overs, etc.) and the data andinstructions (such as, for example, timing variables, type andtrajectory of effect, etc.) and interacting with the client in such amanner as to permit the download and delivery of the content to theclient device in such a manner so as to support client side effects,such as cross-fades. Distribution Channel 220 is understood to includeany distribution channel that supports broadcast or Internet basedcontent delivery, and can include, at times, one or more of suchdistribution channels operating in concert.

FIG. 3 provides additional details of Content Service Provider 210'ssystem. With reference to FIG. 3, Content Service Provider 210 caninclude a Playlist Editor 310 which can be used to manage thedistribution of content to clients. The choice as to content can bemade, for example, as part of a personalized channel service, and caninclude, for example, preference engines and/or user defined parameters,as well as user feedback to songs or clips played to her, to determinewhat clips or songs to send each user on each of his or her“personalized channels.” These playlists can be stored, for example, ina Content Playlist 320 which can be accessed, for example, by one ormore Playlist Editor(s) 310. As shown in FIG. 3, the term “PlaylistInformation” as used herein, and as used for cross-fade or otherprocessing purposes, can include a Playlist Type (e.g. Pop, Classical,Blues, etc.) and a Transition Type that is specified to be used totransition between content clips. Such a Transition Type can include,for example, a desired transition effect (such as, for example, fade in,fade out, fade to voice over, etc.) as well as a transition trajectory(such as, for example, linear, non linear, fast, slow, etc.). Thus thePlaylist Type provides a characterization of the playlist, as notedabove, and the Transition Type provides a characterization of aparticular clip from an ingress to an egress, which can often be quitenonlinear as to both time (number of samples to play at eachquantization level) and volume levels, and quite thus complex. Thus, inexemplary embodiments of the present invention, Playlist Type andTransition Type can be used together to provide parametric data as tohow a given cross-fade (or other multi-clip processing effect) shouldoccur, from both a timing and a trajectory perspective. For example, aPlaylist Type for a “Heavy Metal” channel might indicate quick fadesbetween successive clips. Similarly, Transition Type provides acharacterization of the transition between two clips that are to becross-faded, independently of the Playlist Type. That is, Playlist Typeprovides a nuanced adjustment to how transitions between clips will beprocessed.

As an example, a Playlist Type can have four distinct functions that canbe used for differing channels (or playlists), including, for example, alogarithmic function, a linear function and two sigmoid functions. ThePlaylist Type can also have parameters, which can be constants thatadjust the trajectory of the function over the interval, as describedbelow. Table I below provides exemplary values for such functions andparameters for four such Playlist Types, namely Heavy Metal, EasyListening, Country and Rock.

TABLE I Example Playlist Types Outro Playlist Time Outro Intro IntroType (sec) OutroType ParamA Time Intro Type ParamA Heavy 1 Linear LinearMetal Easy 4 Arctan 1 4 Arctan 1 Listening Country 2 Logarithmic 2Logarithmic Rock 2 Tanh 2 Tanh

Similarly, Table II below provides exemplary TransitionTypes that can beapplied in exemplary embodiments of the present invention.

TABLE II Example Transition Types Transition Type Time (sec) AlgorithmParamA ParamB LinearFadeInSlow 2 Linear LinearFadeInFast 1 LinearSmoothFadeInSlow 3 ArcTan 1 SmoothFadeInFast 2 ArcTan 2 QuickFadeOutSlow2 ArcTan 1 QuickFadeOutFast 2 ArcTan 2 ZeroFadeIn 0 Linear ZeroFadeOut 0Linear

Where the mathematical functions follow (i) some form of logarithm (asis popular in the broadcast community), (ii) a sigmoid function or (iii)some other monotonically increasing function, the parameters “ParamA”and “ParamB”, as described in the two tables provided above can be, forexample, constants which can adjust the slope of the function. Forexample, when using the tanh function, a parameter ParamA can be usedsuch that tanh (Ax) is the actual value. FIG. 3A provides a comparisonof some exemplary Sigmoid functions. In FIG. 3A all of the functions arenormalized in such a way that their slope at 0 is 1.

It is understood that these functions can, for example, be realized as aset of discrete values over the interval, and it is these (attenuation)values that can be downloaded as a table or array to a client device tobe used to adjust the volume of the content during the fade. Forexample, a 1 second linear fade out with a sample rate of 44.1 KHz canbe represented as 44,100 multipliers, each with the value 1 diminishedby 1/44,100 for each sample from the start. (e.g., 1.0, 0.999909,0.999818, 0.999727, etc). The tradeoff between storing and computing thefunction, as opposed to downloading and using a table (withinterpolation between values as needed), is an engineering decision andcan, in exemplary embodiments of the present invention, be contextspecific, based on the instruction set of the client and performanceconsiderations, as understood in the art.

The interaction between the Playlist Type (which defines an overallexperience for a particular type of Playlist, such as a Channel) and theTransitionType (which defines an experience between two successive clipsindependent of the Channel) is one of priority. Thus, in exemplaryembodiments of the present invention, if there is no TransitionTypedefined between two adjacent clips then a standard Playlist Typetransition for that Channel can be used. If, on the other hand, aTransitionType is defined for those clips, then the defined TransitionType can be used instead of a default Playlist Type transition.

Continuing with reference to FIG. 3, Content Information repository 330can provide storage for metadata regarding each clip. In a typicalcontent distribution system this can contain many attributes thatdescribe the content, such as, for example, (i) Content Identification,(Ii) Clip Length, (hi) A Clip Intro List, (Iv) A Clip Outro List, And(V) Content Type. The clip intro list is a list of times relative to thestart of a clip at which it is audibly pleasing to “enter” the clipduring a cross-fade, such as, for example, at 1, 2, or 3.5 seconds formthe start of the clip. Likewise, a clip outro list is a list of timesrelative to the end of a clip at which time it is audibly pleasing to“exit” the clip, such as, for example, at 1, 2.5, or 3.5 seconds priorto the end of the clip. Content Information 330 can thus be used byContent Scheduler 340 during scheduling of content for distribution. Inexemplary embodiments of the present invention, an exemplary system cancontain a Device Profile repository 360. Such Device Profile repositorycan include a characterization of various client devices, and theirvarious versions or “flavors”, including, for example, (i) Device Type(e.g., iPhone 4S. BlackBerry Curve, Droid RAZR, etc.); (ii) acharacterization of the number of hardware decoders on the device; (iii)the time taken for each hardware decoder to decode an audio frame; (iv)the time taken for the device to decode audio frames using its softwaredecoder, (v) Input Buffer Size, (vi) Decoded Audio Buffer Size, and(vii) Low Power Offset.

Information stored in Device Profile repository 360 can then, forexample, be used by Content Scheduler 340 to schedule content fordistribution and client device management. An example Device Profiletable, Table III, with two sample entries, is provided below forillustrative purposes. In exemplary embodiments of the present inventionthe information provided in such a table allows an exemplary ContentScheduler 340 to optimize what content can be downloaded and played on agiven device, and at what times.

TABLE III Exemplary Device Profiles HW Frame SW Frame Hardware DecodeTime Decode Time DeviceType Decoders (30 ms packet) (30 ms packet)SmartPhone AAC+, 10 msec 25 msec MPEG 1, Layer 2 LowCosPhone N/A 25 msec

In exemplary embodiments of the present invention, a system can furthercontain a Content Repository 350 which can be used, for example, tostore actual audio clips in compressed form. In the exemplary system ofFIG. 3, Content Repository 350 can provide content to Content Automationsystem 370 in accordance with directions from Content Scheduler 340. Ingeneral, content is delivered from Content Automation system 370 toclients over Distribution Channel 220 (as shown in FIG. 2) as compressedcontent using one of the many available compression formats, such as,for example, AAC+ or MPEG 1, Layer 2. It is noted that interstitials andvoiceover clips are short in duration and may therefore alternatively besent efficiently over distribution channel 220 in an uncompressed form,which puts a lesser burden on a decoder, especially one that runs moreslowly (say, for example, at a maximum of 2X). Thus, to deliver contentfor an effect that requires, say, more than five (5) elements, if manyof them are small enough to be sent in an uncompressed format, they canbe directly stored to a decoded sample buffer (such as 151 in FIG. 1) ona client device, and it is then much easier to manage the decoder, say,to only handle a few of the clips. Therefore, Content Repository 350 canbe understood to include both compressed and uncompressed audio, as maybe desirable in various exemplary embodiments of the present invention.

Coordination of the delivery of content to a client device can, forexample, be accomplished by Play Control instructions issuing fromContent Scheduler 340, and/or Client Device Control instructions issuingfrom Decode Management 390 to particular client devices. Further, forexample, Content Scheduler 340 can provide message communicationregarding the availability of the playlists authored by Playlist Editor310, and can also, for example, be responsible for allowing a client toobtain profile information regarding both devices and user preferences.Decode Management 390 (also known as “Client Device Management” 390)can, for example, provide message communication regarding low levelinteractions between the service provider and the client with respect todelivery of clip elements to a particular user that are to be mergedtogether. In general, such messages will reflect a “taxonomy” ofvariables, parameters, and data fields defined by the contentdistribution system as needed to adequately manage a client devicedownstream component to perform the various transition effects for anycross-fade.

Exemplary Client Device Single Decoder System

FIG. 4 illustrates exemplary system elements within a client device tosupport audio playout and cross-fade/transition effects according toexemplary embodiments of the present invention. In particular, anexemplary client system (including a downstream component) includes auser 410 who interacts with the system to select audio content to bedownloaded from a service provider via Playout Controller 420. PlayoutController 420 receives user requests to play a particular audioplaylist, e.g. a given channel from the service provider, such as, forexample, a “personalized channel”, a regular or seasonal channel, or aseries of clips, and initiates a request of audio clips (or parts ofclips) from service provider 210 over distribution channel 220 (see FIG.2). The Playlist is understood to include not only the clip name, butalso selected metadata associated with the clip (for example, clip type,song, voice over, interstitial, effect; clip duration, clip size, clipintro, outro, and default cross-fade information) that will assist inthe decision for decode, cross-fade and play out. Compressed audio canthen be delivered to the client via distribution channel 220 (see FIG.2) and can be loaded into a Compressed Audio Input Buffer 430. Inexemplary embodiments of the present invention, Input Buffer 430 can bemade sufficiently long to store not only the clip being played, but alsothe next clip (or part of the next clip) that the currently played clipwill be faded with or transitioned into. The exemplary system of FIG. 4also includes an embedded audio Decoder 440 that can decode compressedaudio at a faster than real time rate, and buffers for uncompressed(decoded) audio 450, along with a FIFO (First In First Out) buffer 460that can be used in conjunction with (i) the algorithm depicted in FIG.6 and (ii) the information delivered from service provider 210 (FIG. 2),to provide a range of audio cross-fades, mixes or other transitions viaCross-fade component 470. In exemplary embodiments of the presentinvention Cross-fade component 470 takes the uncompressed signal levelsof two source frames and generates a new signal level for the resultingframe based on the cross-fade mix, blend or other transition effectblend rate. In exemplary embodiments of the present invention, such aclient system can also contain a Device Performance Agent 435. DevicePerformance Agent 435 can receive profile data from Playout Controller420, and can be responsible for the real time management of the audioclip downloads and decoding thereof (if necessary) based on systemresource availability.

Exemplary Client Device Multiple Decoder System

FIG. 5 depicts an alternate exemplary system for cross fading two clipsaccording to exemplary embodiments of the present invention. This systemcan be used, for example, where two simultaneous decoders are available,either in hardware, software or both. With reference thereto, a clientsystem embodiment can include Playout Controller 510 which can beresponsible for message exchange with Service Provider 210 (FIG. 2) toobtain device characteristics and user profiles. Playout Controller 510can, for example, interact with, and coordinate, the delivery of datawithin the system including (i) Input Buffer 520, (ii) decodersDecoder-A 530 and Decoder-B 540, (iii) decoded data buffers DecodedBuffer-A 550 and Decoded Buffer-B 560 which store uncompressed audio, asshown, (iv) playout volume adjustment controls on audio play outVolume-A 570 and Volume-B 580, and (v) Audio Presentation layer 590. Itis noted that the depicted buffers are logical constructions and neednot be distinct from one another. Thus, a single buffer can be used inplace of, for example, 520, 550, and 560. Just as in the systemillustrated in FIG. 4, Device Performance Agent 525 can receive profiledata from Playout Controller 510, and can be responsible for the realtime management of the audio clip downloads based on system resourceavailability. Thus, the various system components of FIG. 5 permit thecontrol of two audio decoders (either software or hardware decoders) andthe blending of two clips (at the appropriate offsets, as noted above)to be cross-faded, blended or otherwise processed by adjustment of thevolume levels on the two decoders, and the summation of the two audiooutputs. Such blending can be performed, for example, using instructionsreceived from Content Scheduler 340 and Decode Management 390 (alsoknown as “Client Device Management”).

Exemplary Methods for Client Device Cross-Fade

1. Direct Technique

In exemplary embodiments of the present invention, a method foraccomplishing a cross-fade between two exemplary audio elements can beimplemented as provided in FIG. 6. The illustrated method is known asthe “Direct Technique,” inasmuch as this approach can be used insituations where access to uncompressed audio on a client device isavailable (e.g., to a downstream component or application (“app”)residing on the device) so as to facilitate cross-fades, blends, etc.This is the case, for example, in an iPhone or other “smart phone” typedevice. It is here assumed that there are two audio clips (files) to becross-faded or similarly processed, and that there is a blend FIFO withsufficient memory to hold M frames of uncompressed audio. In the figure,M refers to the number of frames to blend between files, N refers to thenumber of frames in the file minus M (i.e., the part that is not anintro or an outro, for example), and F the number of frames in the blendFIFO. Moreover, a solid line or arrow denotes a direct state transition,and a dotted line or arrow a state transition into parallel decode.

The exemplary method works as follows. A FIFO buffer of length F willmaintain audio elements to be blended during the cross-fade. Given anaudio element of length N+M, where M is the number of compressed framesto be cross-faded between the two clips, at 610 the first file isreferenced from the input buffer (430 in FIG. 4) starting with the firstframe, i=0, and at 620 the frame is extracted. Since, in general, thisframe would be merged with the (N+M−M) frame of the previous clip, aninspect is made at 630 to see if i<M. If yes, we are in the intro of thecurrent frame and the frame is to be blended, so the FIFO buffer ispopped and frame i is blended with this frame (which would be N+M−M), inaccordance with the cross-fade directions received based on PlaylistType and Transition Type, as described above. For example, if an audioframe has 2048 samples, then for a 50 frame blend (which thus has102,400 discrete samples), a linear cross-fade might be to reduce theaudio sample signal level value of sample A by 1/102,400 and increasethe audio sample signal level value of Sample B by 1/102,400 (whetherone actually hears this fine gradation is subject, of course, tosufficient quantization levels to support this granularity, and alsogood hearing). These two values can then be combined to implement thefade. Likewise, an aggressive fade might be, for example, to decreasethe value from the FIFO signal value more quickly and increase the framei signal level correspondingly. It is thus noted here that there aremany potential mathematical algorithms that can, for example, be appliedto the sequence of clip frames that will effect various differenttransitions. In general a “broadcast quality” experience does notinvolve a simple linear cross-fade, but rather something more complex,which can be, for example, genre, channel and, even possibly, songspecific.

Continuing on this path, the FIFO length is checked to see if there areframes in the blend buffer (F>0?) at 660. If there are no frames toblend, then at 640, the current frame is inserted into the FIFO forfuture blending. From 640 a test is made, at 680, to see if i>=N. IfYES, the audio frame i is submitted to audio output at 670, i isincremented at 696 and the next iteration started at 620. However, if at680 i is not >=N, and NO is returned, then a test is made at 690 to seeif i==N. If the test returns YES, then the frame is at the start of theoutro part of its fade. Accordingly, at 698 the next clip (file) shouldbe started for processing. If the test returns NO at 690, then a secondtest is made, at 695, to see if i==N+M−1. If this is the case, then thecurrent clip has concluded and processing on the clip is terminated at697. If at 695, if i is not==N+M−1, and thus NO is returned, then thereare more frames to process, and thus i is incremented at 696 and thenext frame is processed at 620. From 660, if F is >0, and YES isreturned, then the frame being processed should be blended with a lastframe in the blend buffer. I.e., on this path, the cross-fade component470 in FIG. 4 is called to perform the blend, as noted above. Therefore,we can extract the last frame from the blend buffer at 650 and blend itwith the current frame. From 650 the blended frame can be passed to 670for audio output, i can be incremented at 696, and the next frame can bestarted for processing at 620. This algorithm, and the processing ofaudio frames using it, can be a very useful technique in exemplaryembodiments of the present invention that are provided on smart phoneclient devices or the like.

2. Indirect Technique

However, it is readily appreciated that various other methods foraccomplishing a cross-fade or other transition between two audioelements can similarly be used. With reference to FIG. 7, an alternatemethod is illustrated, known as the “Indirect Technique.” This approachis applicable to situations in which there is no access by an exemplaryapplication or device resident module to the uncompressed audio bufferon a client device. This is the case in, for example, Android typedevices and Flash devices.

In this situation it is necessary to adjust the volume control of theoutput from simultaneous decoders to effect the desired result. It isnoted that this approach is also applicable to situations in whichaccess to the decoded audio buffer is available. In general, thisapproach can be used when conventional cross-fading is effected at theclient side, such as in a conventional linear fixed interval cross fade,without the benefit of the novel techniques and methods describedherein.

As noted in FIG. 7, a client device platform should allow multipledecode sessions and mix output audio for each session. In FIG. 7, Mrefers to the number of frames to blend between files, and N refers tothe number of frames in the file after subtracting M. Once again, asolid line or arrow denotes a direct state transition, and a dotted lineor arrow a state transition into parallel decode.

With reference to FIG. 7, the exemplary method can be initiated bystarting to decode the first file at 710, and then by reading the firstframe of the file and providing it to the decoder at 720. Just as wasdone in the exemplary Direct Technique method shown in FIG. 6, a testcan be made at 730 to see if i<M (which is the number of frames to befaded over; i.e., the frame index i has not yet reached M, which iswhere the fade is to start). If i is not <M, and NO is returned at 730,then at 740 the volume of the player should be set to 100%. A test canthen be made, at 770, to see if i==N (last frame of the file before thecross-fade). If YES, the next file should be started for decoding inparallel at 799, and the current decoder's volume set to 100%. The valueof i can then be incremented at 768, and the next frame processed at720. However, if i is not==N, and NO is returned at 770, then a checkcan be made at 785 to see if i==N+M−1 (the last frame of the file). IfYES, then processing ends at 790. If NO, then i is again incremented at768 and the next frame processed at 720. From 730, if i is not <M, andNO is returned, a check at 750 needs to be made to determine if anotherdecoder is running. If YES, and another decoder is in fact running, thecross-fade volume adjustment between the two decoders is performed at760, i.e., a decrementing of the volume of one and an incrementing ofthe volume of the other. For example, this can be done as follows: forlinear fades adjust in proportion to N, for nonlinear (real-world) fadesa more complex schema can be used. From 760, a test can be made at 780to see if the fade is complete so that the other decoder can be removedat 795. If it is not complete, it is necessary to check for i==N at 770,as before, and process the remainder of the file.

Exemplary System Timing for Client Side Cross-Fade Management

As noted above, when only one hardware decoder is available on a givenclient device, faster than real-time downloading can be used topre-fetch the next clip to be used in a cross-fade or other transition.System timing to support such a faster then real time download andsubsequent cross-fade, blend or other multi-component effect orprocessing between audio elements is illustrated in FIG. 8. FIG. 8 thusshows an example of three successive audio clips being played, with twoelement cross-fades at each transition. Thus there are shown twotwo-element cross-fades. Initially, when a client device starts at 810,the client Playout Controller (410 or 510, as above, in FIGS. 4-5) willcommunicate with the service provider to obtain content scheduleinformation from a Content Scheduler (such as 340 in FIG. 3). The clientinforms the service provider of the device type being used, and the userID (by messaging, for example, with Client Device Management 390). Giventhis information, (i) a device profile can be downloaded for that clientdevice to be used for blending content in the device, and likewise, (ii)a user preference profile can also be downloaded to the client device tobe used in blending content based on various user preferences and systemknowledge about the user.

As shown at 810, a first clip can be downloaded to the client by meansof client device control messages between a client Device PerformanceAgent 435 (in FIG. 4) and Decode Management (also called Client DeviceManagement, as noted) on the service provider side (390 in FIG. 3). Asnoted above, the Device Performance Agent is responsible for monitoringthe system resources on the client side, and providing information forrequesting new clips in accordance with the time it will take to decodethe requisite cross-fade elements and blend them (and the availabilityof memory and resources on the client device, as well as link speed andconditions). This information can be readily computed from (i) deviceprofile information, (ii) user preference information, (iii) the timetaken to decode a frame, (iv) the intro and outro information for eachclip, and (v) the then prevailing channel bandwidth and availability ofsystem resources on the client device, for example. The client then canstart to play the first clip, as shown at 810. At 820, at some pointprior to the start of the first clip's outro, the second clip (or partthereof) can be downloaded to the client device. The start of thisdownload can be determined, for example, by the parameters noted above,and must take into account, as noted, any network conditions, bandwidthrestrictions and latency issues. The computation of when to start thissecond clip download requires that the second clip (or part thereof) beavailable within the client before the cross-fade or other transitioneffect is to be started.

At 830, at the point determined by an algorithm as described above, thecross-fade between the 1^(st) clip and the 2^(nd) clip can be effected(beginning (left side) of crossed dotted lines). At 840 the cross-fadehas concluded (ending (right side) of crossed dotted lines) and the2^(nd) audio clip can be played by itself. At some later point, 850, itis time for the next audio clip (the 3^(rd) clip) to be downloaded, andonce again this must occur a sufficient time prior to the end of the2^(nd) audio clip's ending (i.e., prior to the outro of clip 2) so as tostart the cross-fade, as described above, resulting in a secondcross-fade starting at 860 and concluding at 870. It is noted thatalthough delivery of audio clips to the client can be handled in ajust-in-time manner (as described herein), any subsequently needed clipcan, in fact, be delivered from any point prior to a quantity of time Tequal to {cross-fade starting time+processing delay}, as indicated bytime interval 880. Thus, at any point within dotted line 880 thedownload of clip 3 can start, and it must start no later than point 850.

It is noted that the various clip transition methods described hereinare in no way limited to only two elements being cross-faded orprocessed, but rather are applicable to any (reasonable) number ofelements that are desired to be overlaid. In contrast to the cross fadesof FIG. 8, therefore, an example of a three element cross-fade is thusprovided in FIG. 9, as an example of such multi-element processing. Inparticular, one approach used within the broadcast community is the useof a voice over during a cross-fade. In this instance the fade out andfade in elements can be attenuated, and another, third audio element isimposed “on top of” the first two. This is the familiar DJ speaking overan attenuated cross-fade of two successive songs or tracks, such as, forexample, “That was Led Zeppelin, with the eternally intriguing Stairwayto Heaven, and now another reflective classic, Kansas, with Dust In TheWind.”

With reference to FIG. 9, three such clips are illustrated. Clip 1 910(Audio Samples 1) is the currently playing clip, such as, for example, asong on a given Sirius XM personalized channel. Clip 1 begins to fadeout starting at Outro of Audio 1 912, and Clip 3 930 (Audio Samples 3)is the next clip to be played. Clip 3 fades in starting at Begin Introof Audio 3 932, which is some time after the Outro of Audio 1 912begins. Superimposed over this cross fade is a Voiceover Clip 2 (AudioSamples 2) 920, which can be blended with the others as shown. Voiceoverof Audio 2 begins at time 922, essentially the same time as when Outro912 begins (this is exemplary, and not required), and increases involume until it reaches a plateau, which continues through about midwaythrough the Intro of Audio 3, and then decreases in volume and finallyends at End Voiceover of Audio 2 at time 923, as shown. As noted, BeginVoiceover of Audio 2 922 begins at the same time as Outro of Audio 1912, and ends at the same time as End Intro of Audio 3 925. In suchinstances, the inventive principles described above can be applied toboth clips 2 and 3 (i.e. the download of both clips 2 and 3 occursbefore they are to be blended with clip 1). As noted above, the voiceover and cross-fade characteristics can be adjusted based on userpreference, playlist characterization and/or channel characterization,to effect a voiceover/fade that is consistent with the expectations,parameters, and/or preferences of a given playlist, given channel and agiven user. Thus, the previous examples may be extended to three or moreaudio elements, or even say ten, for example, where, for example, across-fade between two adjacent songs can be performed, and during themiddle section of the cross-fade a DJ voices over with some interestingfact about the next song and plays some sound effects. When the intro ofClip 2 and the outro of Clip 1 are relatively long, and where there arepoints in those portions where neither signal has much activity, a DJvoice over or sound effect(s) can enhance the listening experience, asis generally appreciated by anyone listening to a well-programmedbroadcast station. This gives a substantially enriched experience to asequence of songs that is far more interesting than simply running themone after another with no programming.

As mentioned above, it is further noted in this context that typically,voiceover clip elements, as well as sound effects, are short induration, and thus it is possible to send these audio elements from theservice provider to the client as uncompressed audio, and simply blendthem into the other two audio streams without the need for audiodecoding. Clearly there is a tradeoff with respect to network bandwidthrequirements. An integrated service provider solution as describedherein thus permits the calculation of this as part of the downloadmanagement.

Core Concepts Needed to be Addressed in Implementations

Next described in general, and then below in particular with referenceto FIGS. 10-15, are various core functionalities and issues that need tobe considered and addressed in any implementation of a cross-fading orother multi-clip processing application as described above. Theseinclude the following:

-   -   Differentiated downloading of clip based on clip type (using        metadata, e.g., song/effect/interstitial), using a hierarchy        (for example, songs=1, voiceover=2, interstitials=3, and sound        effects=4). Thus, a given system may elect not to download        certain clips based on device type and dynamic conditions. To        implement this granularity, a hierarchy of clip types needs to        be created and implemented so that in less than optimal        conditions complex cross-fades and effects need not be        performed, and their less crucial elements need not be        downloaded (e.g., sound effects).    -   Comparison of minimum decode/processing time for upcoming events        versus remaining event play-out time. Based on this information        a decision about what to download and/or process (i.e.,        simplification of effect) can be adjusted dynamically. Thus, not        just nominal processing power, decoder type and speed, and input        buffer size of a client device is taken into account, but rather        the dynamic actual values for these variables, in addition to        network conditions. All of these variables can cause the minimum        decode/processing time for upcoming events to vary in any real        world context.    -   Number of concurrent layers to be utilized/supported in        cross-fade or other processing. In other words, whether to        permit overlay between, for example, ClipA, VoiceOver and Clip B        or back to back play-out, based on device type and dynamic        conditions.    -   Server side controlled fades/transition effects is generally        only useful/applicable to deterministic systems. For all        non-deterministic systems it is recommended that the client side        be passed parameters and given control of the        cross-fade/transition effect. If server side control is used, it        must be tightly coupled to the client stream playback time-line.        However, if client side control is used, the client device must        compute an event timeline based on metadata parameters passed        and dynamic conditions. This requires sufficient processing        power on the client device.    -   For a high speed deterministic network a long pre-cache is        undesirable, inasmuch as it does not buy any advantage and        wastes bandwidth. For a non-deterministic network link, such as        via a smart phone, a long pre-cache can be very desirable, and        obviously insures all elements needed for future playback are on        the client device, but these efforts are wasted if the user does        not remain on the current channel, to which the pre-cached        elements relate. There is thus a trade-off, and information        regarding likely “stickiness” of user to the current channel is        a necessary input to any dynamic calculation of when to use/not        use a long pre-cache.

FIGS. 10-14—Exemplary Decision Trees For Implementation

To implement the core concepts listed and described above, in exemplaryembodiments of the present invention, logic can be created that can makedecisions based on device type, device conditions, user behavior (pastand predicted), user preferences, complexity of cross-fade, blend oreffect, and network conditions. FIGS. 10-14, next described, presentexemplary decision trees from which such logic can be created inexemplary embodiments of the present invention.

FIG. 10 is an exemplary decision tree for fade control assignmentaccording to exemplary embodiments of the present invention. Thisdecision tree provides logic for deciding whether or not to useclient-centered control of cross fade, by receiving parameters from anupstream server, or by using the upstream server itself to control thecross fade using “fade now” type semantics. Server-side cross fading isdetailed, for example, in U.S. Provisional Patent Application No.61/687,049, filed on Apr. 17, 2012, the disclosure of which is herebyfully incorporated herein by reference.

With reference to FIG. 10, the decision process begins at 1010 where thechannel characteristics of the connection are obtained. This is done bythe device and transmitted upstream to the server. Once that is done,process flow moves to 1020, where the type of the connection is obtainedand is likewise transmitted upstream. There are two possible responsesto this query at 1020, namely, the communications channel is either afixed connection or a mobile connection such as on a mobile device. Afixed connection is, for example, a computer or other device ultimatelyconnected to a home or office with hardwired Internet access. The fixedconnection is deterministic because, given the fixed link, thecharacteristics of the communications pathway can be reasonably knownand are reasonably consistent. On the other hand, a mobile connectionover a wireless network, such as, for example, a 3G, 4G or the like, isnon-deterministic in that as a user moves through space, or as networkconditions vary, the characteristics of the communications link ingeneral will change. Following down the “fixed” pathway to 1030, devicecharacteristics can then be obtained, which can then be transmitted bythe device upstream to the server.

The server, in general, can, for example, have a large library of deviceprofiles and methods of implementing cross fades/multi-element effectsthat can be optimized once device characteristics are obtained at 1030and transmitted upstream. It is recalled that an exemplary deviceprofile table (for the trivial case of two devices) was presented abovein connection with FIG. 3. Because such optimization is dependent inpart on a device's processing power, the decision can occur, forexample, once it is determined whether the device has low processingpower or high processing power. This is queried at 1040. Thus, if at1040 the return to the query is that the device has Low ProcessingPower, then at 1060, the cross fade or other effect can be implementedon the server side (upstream) using real time “fade now” controlsissued, for example, from the service provider. This is fully acceptableinasmuch as given the deterministic nature of the connection, a “fadenow” command can be expected to be timely received and implemented,without erratic network delays. If, however, at 1040 the return is thatthe device has High Processing Power, then at 1050, the cross fade orother effect can be implemented on the client side by passing parametersto the client device, and having the client schedule them using its owntiming calculations.

Alternatively, returning to 1020, if it is, in fact, a non-deterministicconnection to the server, such as, for example, on a mobile device, thenprocess flow moves directly to 1050 where the cross fade, blend or othermulti-element effect can be scheduled by passing parameters to theclient device, here a mobile device, and having such client deviceschedule them using its own timing calculations. (It is assumed that themobile device has high processing power; it is understood that one canimplement different logic to account for non-deterministic, yet low-end,mobile devices assuming that cross-fading was to be implemented onthem).

Similarly, FIG. 11 illustrates an exemplary decision tree for clip limitselection according to exemplary embodiments of the present invention.Its logic addresses the decision as to how many clips to download to theclient device ahead of the then currently playing clip, and returns aClipLimit. The more clips that are downloaded, the greater theflexibility and reliability, as noted above, but this also requires morethen available storage on the client device. An additional considerationis whether the user will continue listening to his or her currentchannel, known as user “stickiness” to that channel. If yes, then itmakes sense to download many clips, even up to the length of the currentplaylist. If not, and the user changes channels, then all of thedownloaded clips will be thrown out, and the effort was a futility.Prediction algorithms can here be used to estimate “stickiness” to suchchannel for such user, with various confidence intervals.

With reference to FIG. 11, beginning at 1110, channel characteristicsare obtained in similar fashion as at 1010 in FIG. 10. Once the channelcharacteristics have been obtained, a similar decision is made at 1120as was made in FIG. 10, where it is determined whether the device isfixed or mobile and, therefore, whether there is a deterministic-typecommunications channel or a non-deterministic type communicationschannel. If the communications channel is of the deterministic type,then process flow moves to 1180 and a clip limit of one song plus onesubsequent programming element is chosen. If, on the other hand, at1120, it is determined that the device is mobile, and, therefore,connected over a non-deterministic communications link, then at 1130 thedevice characteristics are obtained, and at 1140 a query as to whetherthe device has a low-input buffer size or a high-input buffer size ismade. If the device has a low-input buffer size, then process flow endsat 1170 where the clip limit is set at one song plus any subsequentprogramming elements that relate to that next song or the transition toit. If, however, at 1140 it is determined that the mobile device has ahigh-input buffer size, then it is possible to download a number ofsongs and associated cross fade or transition elements for each songtransition within that number of songs. However, as noted above, thiscan be a futility if the user is likely to simply switch to a differentchannel. Thus, at 1150 it is first queried how “sticky” this user is tothis particular channel, using whether he or she has been listening tothis channel for a while as a metric. In general, if a user has beenlistening to a channel for a modicum of time and has not switched off ofit, it is an indication that the user probably enjoys this channel andwill likely stay with it for a while. This justifies downloadingmultiple lips that will service this device on this channel for sometime to come. Other more complex algorithms can be used, including userlistening statistics over time, with various parameters (time of day,season, etc.) charted to predict user stickiness. Thus, if at 1150 it isdetermined that the user has listened to the channel for a while, thenprocess flow moves to and terminates at 1160, where the clip limit isset to be the full recommendation limit coming from the upstream server,including however many songs are in the current playlist plus anyadditional programming elements required to effect cross-fades, mixes,blends or other multiple clip effects at each transition betweensuccessive songs in this playlist.

If, on the other hand, it is determined at 1150 that the user is notthat “sticky” or “loyal” to the current channel, and thus NO is returnedat 1150, then that fact does not justify the assumption that he or shewill necessarily stay with the channel for a long time. In such caseprocess flow moves to and terminates at 1170 where the clip limit is setat one song and any subsequent programming elements necessary totransition to that next one song (the number of which depends upon thecomplexity of the cross-fade, as discussed above in connection withFIGS. 8 and 9).

FIG. 12 illustrates an exemplary decision tree for transition selection,and it outputs to the client device which transition type to use betweenaudio clips. Transition selection involves the decision as to whether touse clip specific defined transitions (Transition Type in FIG. 3) ortransitions defined by the more general playlist type (Playlist Type inFIG. 3), as described above in detail (e.g. the defaults for a “Rock” ora “Classical” channel). The decision process begins at 1210 where theclip is obtained. Once the clip has been obtained, at 1220, the decisionis made as to whether there is in fact a clip transition defined forthis particular clip. If YES, then process flow moves to 1230 where thescheduled clip transition is set to be Clip Transition. On the otherhand, if there is no clip transition defined, and NO is returned at1220, then process flow moves to 1240, where the scheduled cliptransition is set to be Playlist Transition. 1240 thus represents thedefault case, as described above in connection with Tables I and II.FIG. 12 thus implements the rule noted above, that if there is noTransition Type defined between two adjacent clips then the PlaylistType transition for that channel is used. If, on the other hand, aTransition Type is defined, then that specific Transition Type can beused instead of the default generic Playlist Type.

FIG. 13 presents an exemplary decision tree for concurrent layerselection according to exemplary embodiments of the present invention.The decision tree addresses the decision as to how to process clip crossfades, blends and voice overs in a manner that is typically found in abroadcast radio music experience, and returns what type of cross-fadingor transition to use. The decision tree permits less complex devices toavoid having to manage multiple clips at the same time. In exemplaryembodiments of the present invention, it just does not make sense tooverburden a device with low-processing power to try and implement a badversion of the “DJ” or “broadcast type” music experience. It is, infact, better to deliver a less complex version of the music service—butto do it well. Therefore, at 1310, the device type is obtained, and at1320 the processing power of the device is determined. It is noted thatthis is not simply a specification of the device in abstract. Rather, inexemplary embodiments of the present invention, this is a function ofboth its inherent processing power and what else is happening on thedevice at the time. Moving now from right to left across the bottom ofFIG. 13, if the client device has a low-processing power (or has aneffectively low-processing power at this particular time due to the thenpresent load on the processor), then process flow moves to andterminates with 1350 where simple clip concatenation can be used withoutany cross fading. Similarly, if at 1320 the return is that the devicehas medium processing power, then process flow moves to 1340 wheretwo-layer clip cross fading, using at the most a clip A, a clip B, and alayered interstitial, is implemented, similar to the sequentialcross-fades shown in FIG. 8.

Finally, if at 1320 the return is that the device has high processingpower available, then process flow moves to, and then terminates at,1330 where a three layer clip cross fading is implemented, as shown inFIG. 9, for example, using a clip A, a clip B and a layered interstitial(e.g., Voice Over Audio Samples 2, in FIG. 9). Thus, in connection withthe implementations at boxes 1330 and 1340, it is noted that there arevarious ways to do a cross fade. One can use 3 layers, as shown in FIG.9, where, given a current Clip 1 being played, at the end of Clip 1there is a cross-fade of the outro of Clip 1 and the intro of Clip 3,and superimposed on that cross-fade is Voice Over Clip 2, as shown.Therefore, during the time interval that Voice Over Clip 2 is beingplayed there are actually three elements simultaneously being played,and to be even more granular, the most active samples of Voice OverClip2 are set to occur when the least action is going on in the cross fadeof Clip 1 and Clip3. This is the complex type of transition called forat 1330. A less complex version of this transition is to simply crossfade between Clip 1 and Voice Over 2, play the remainder of Voice Over2, but then cross fade between the end of Voice Over 2 and the beginningof Clip 3, but in no event are Clip 1 and Clip 3 ever beingsimultaneously played, as shown in FIG. 8. This is what is called for at1340, and is chosen for devices with medium processing power. In such anapproach the entire three element cross fade is implemented, albeit asrestricted to only two elements ever being cross-faded at the same time.Or, alternatively, one could skip the Voice Over Clip 2, and simplycross-fade between Clip 1 and Clip 3. In either case a two layer crossfade can be implemented. Finally, at 1350 there is no cross fadingcalled for at all, and all that occurs is one song ending and the nextsong beginning after the first song has entirely ended, known asconcatenation. In fact, following the end of song 1 there may be aslight gap, barely audible, before song 2 begins. As is often the casein Internet music services, such a gap is often very audible.

Moving now to FIG. 14, an exemplary decision tree for contentdownload/playback selection is shown. This decision decides as to whichclips should be downloaded from the upstream server and when. It isnoted that under optimum conditions all of the content will bedownloaded and processed. However, under constrained conditions, somenon-essential content may be omitted. The exemplary contentdownload/playback selection decision tree of FIG. 14 can thus be used todecide when such constraint conditions apply and, given such constraintswhat can/should be omitted.

With reference to FIG. 14, processing flow begins at 1410 where thedevice type is obtained. Given the device type, at 1420 a query is madeas to the then available (i.e., “effective”) (i) processing power, aswell as (ii) input buffer size, of the device. Thus, the query at 1420is effectively a combination of the respective queries shown in 1140 and1320, respectively, of FIGS. 11 and 13. These are dynamic variableswhich generally depend both upon the inherent capabilities of the deviceas well as upon how busy it is at the time. Moving from right to leftacross the bottom of FIG. 14, there are three possibilities, for each of(i) Low Processing Power, (Ii) Medium Processing Power And (Iii) HighProcessing Power With High Input Buffer Size. Beginning on the right, at1450, if the device has Low Processing Power at the time the query ismade, then, for example, all that need be downloaded are the audioclips; all interstitials and programming elements are omitted. Moreover,the content is decoded just-in-time (to save room on the decoder outputbuffer and not waste decoder processing time) and there are no crossfades implemented upon play back. This optimizes the Low ProcessingPower type device. Next, at 1440, for a device with Medium ProcessingPower, the next audio clip as well as a single cross fade element can bedownloaded, be it music to music or music to interstitial, etc. and onlysingle layer cross-fades need be implemented (as in FIG. 8). This meansthat the three layer clip cross fade shown in FIG. 9 would not beimplemented, even as a succession of two layer cross fades. Finally, at1430, for a device with High Processing Power And A High Capacity InputBuffer at the time the query at 1420 is made, everything can bedownloaded, namely, all of the programming elements and preprocesscontent can be downloaded well ahead of time, and playback of thedownloaded content can be implemented using layered cross fades,including three, or even more, layers as may be dictated by theprogramming of the channel.

Summing up the logic set forth in FIGS. 10-14, FIG. 15 presents a chartof various dynamic decision criteria influencing download and playbackalgorithm selection. With reference thereto, there are four inputvariables, shown in the first four columns, namely 1505, 1510, 1520 and1530, and a result or algorithm to be implemented given the variouscombinations of the states of those four variables, said result providedin the fifth column 1540. For example, looking at the top row (notcounting the headings row) of FIG. 15, all of the input variables arehigh, and thus there is (i) a large amount of time available based onupcoming events, (ii) the input buffer size of the device is high, (iii)the device's available processing power is high, and (iv) the connectionrate or compressed bit rate through the communications channel is high.In such case, at 1560, which is the ideal case, everything isdownloaded, including all programming elements and preprocessed contentway ahead of time, and the content can then, for example, be played backusing layered cross-fades. This is essentially the maximum “broadcasttype” experience, or even greater enriched experienced, that can bedelivered on a client device. Continuing to the second row of FIG. 15,if the computed time available based on upcoming events is high or thevalue is not available, the input buffer size is high, the availableprocessing power is low, but the channel connection rate is still high,then at 1561 everything is downloaded, using all programming elementsand preprocess content well ahead of time, but due to the low processingpower, only single layer cross-fades are used as opposed to multiplelayer cross-fades, as in the algorithm provided at 1560. Continuing withthe third row of the chart, conditions are here beginning to palpablydeteriorate from ideal, or, in some cases, cannot be determined. Thus,if the time available based on upcoming events is not available, and ifthe input buffer size is low, or the available processing power is low,or the connection rate/compressed bit rate of the channel is low, thenthe selected algorithm, at 1562, is to download an audio clip and asingle cross fade element and implement a single layer cross fade as tothose two elements, for example, either music/music, ormusic/interstitial. Finally, at the bottom row of the chart, where theinput variables 1505, 1510 and 1520 are all low, and the connectionrate/compressed bit rate, is either low or data for it is unavailable,then, at 1563, only audio clips need be downloaded. No interstitials areor programming elements are downloaded, and the downloaded content (justaudio) is decoded just-in-time, and no cross fades are be implemented.

It is understood that the summary chart of FIG. 15 is one of manypossible nuanced set of algorithms, and in actual specificimplementations variations based on varying thresholds of input buffers,complexities of transitions desired or defined for a given channel, andthresholds/gradations of communications link quality and speed can bedifferent, and thus various classes of charts such as FIG. 15, eachindividual implementing an exemplary variant, are all within andcontemplated by the present invention. FIG. 15 is understood to provideexamples, but the vast variations possible are indeed an open set, ofwhich the algorithms 1560-1563 are exemplary paradigms.

Exemplary Software Modules and Pseudo Code

FIG. 16 illustrates various exemplary modules that can be used, forexample, in an exemplary implementation, to implement various aspects ofexemplary embodiments of the present invention. These can be provided,for example, in software, firmware, or even burned into gate arrays orhardware, as the case may be. As can be seen in FIG. 16, in thisexemplary implementation a provider controller module can run upstream,on a system server, for example, and the remaining modules can be rundownstream, on a client device, for example. This is most similar to themobile device or smartphone situation described above, where it isoptimal, given a device with sufficient processing power and inputbuffer capacity, as well as a good communications link, to pass crossfade control to the device.

Exemplary pseudo code is provided below for (i) a Provider ControllerAlgorithm 1610, (ii) an Client Event Scheduler 1630, (iii) a ServiceProvider Interface 1635, (iv) a Client Clip Buffer Manager 1645, and (v)a Client Playout Controller Algorithm 1640, all as shown in FIG. 16.Clip 1650, Blend FIFO 1655, and Decoder 1660 are simpler processes thatare called by some of the larger modules, and are self-explanatory, asprovided in FIG. 16.

ProviderController Algorithm For each client i {  new clientThread =ProviderController( );  clientThread.run( ); } Class ProviderControllerextends Thread {  client[i] = Client.create( ) client[i].setDeviceType(DeviceTable[i]); client[i].setPreferences(UserProfileTable[i]); client[i].setConnectionCharacteristics(ConnectionTable[i]) connection.open(i);  connection.send(client[i].getDeviceType( )); connection.send(client[i].getPreferences( )); connection.send(client[i].getConnectionPreferences( ));  while(client[i].isListerning) { playlist = CreatePlayList( );connection.send(client[i].playList); if (ConnectionTable[i].hasChanged()) connection.send(client[i].getConnectionPreferences( )); if(playlistType.hasChanged( )) connection.send(NewChannelLineup);  } }

An exemplary Provider Controller Algorithm can, for example, reside on aService Provider side and can, for example, be responsible forcoordination of a Client Device with the Service Provider. It isunderstood that this coordination involves a complex set ofinteractions, which have been simplified in the above pseudocode forease of illustration.

Client EventScheduler Void EventScheduler( ) {  sp = new ThreadServiceProviderInterface( );  sp.getAuthentication( );sp.getUserProfileData( );  cbm = new Thread ClipBufferManager( ); decoder= new Thread Decoder(cp.clip( ).pop( ));  repeat { wait (event){ if(event == spi.NewPlayList) {cbm.NewPlayList(spi.;if(event==spi.ConnectionChanged) {...}; if(event==spi.Reauthentication){....}; if(event==spi.ProfileUpdate) {....};if(event==spi.NewChannelLineup) {...}; if(event==TIMEOUT) {...};   } }until event( ) == exit( );

This component resides on the Client Device and can be responsible forcoordination decoding and playout of audio clips and interaction withthe Service Provider. It is understood that this is a complex set ofinteractions, and for illustrative purposes, what appears above is asimplification.

Service Provider Interface Class ServiceProviderInterface( ) extendsThead { public void run { authenticateWithServiceProvider( ); deviceType= getDeviceTypeFromServiceProvider( ); userProfileSettings =getUserProfileFromServiceProvider( ); connectionSetting =getConnectionProfileFromServiceProvider( ); if (deviceType == ‘mobile’)and (deviceType ==‘low power’)  crossfadecontrol = ‘serversideRealTime’;else  crossfadecontrol = ‘clientsideParameterDriven’; case (msg =waitOnMessage( )) of { ‘NewPlayList’: event.signal(NewPlayList); //playlist includes metadata: type, length, bits etc. ‘ConnectionChanged’:event.signal(ConnectionChanged); ‘Reauthentication’:event.signal(ReAuthentication); ‘ProfileUpdate’:event.signal(ProfileUpdate); ‘NewChannelLineup’:event.signal(NewChannelLineup);  } } deviceType getDeviceType( ) {....} // get device type details from service provider  // populatedeviceType object } userProfileSettings getUserProfile( ) {...}channelSetting getConnectionProfile( ) {...}  playlist getPlayList( ){...}

This component can reside on the Client Device side and can be, forexample, responsible for interactions with the Service Provider. Thus,for example, it can receive events from the Service Provider and adjustinternal operations based on these events.

Client ClipBufferManager Void Thread ClipBufferManager( ) { Next ==0;Loop{  While (bufferSpace && next < clipLimit) { playList =serviceProvider.getPlayList(client); clip.Push( ) =getAudioClip(playList[next]) if(playList.numberOfElements( ) <cliplimit)  requestNewPlayListFromServiceProvider( ); next++  }} Wait(DecoderFinishedWithClip); } Void skipReceived( ) {  While(clip.BufferLength( ) > 0) clip.Pop( ); }

This component can, for example, reside on the Client Device side andcan be responsible for coordination of the download of clip data form,for example, a Content Information repository such as shown in 330 ofFIG. 3. It can, for example, use metadata provided as a supplement tothe playlist to determine which clips to download and insert intodecoder processing.

Client Playout Controller Algorithm Void Decode(clip) { m =clip.getMetadata(“BlendFrameCount”) n = clip.frames( )−m; f =blendFifo.frames( ); label::  frame = clip.decode(i);  if (i<m)blendFifo.push(frame) {  } else {  if (f>0) {  frame =frame.blend(frame,blendFifo.pop( ));  audioOutput(frame);  i++;goto(label);  } else { blendFifo.push(frame); if (i >= n) { audioOutput(frame);  i++; goto(label);  } else if (i==n) { newDecode =new Decode Thread(clip.Pop( )); i++; goto(label);  } else if (i==n+m−1)exit( ) else {  i++; goto(label); } }

This component can, for example, reside on the Client Device side andcan, for example, be responsible for decoding and cross-fading audioclips that are in a push down stack. The order of clips in the stack canbe determined by the clip buffer manager and may be adjusted based ondynamic conditions, for example. Once a clip has started to be decodedit will continue until completed. It is noted that this algorithm isessentially equivalent to that shown in FIG. 8. It is understood thatthe algorithm can further be extended to take into account the conceptsand functionalities described above in connection with FIGS. 10-15, aswell as numerous and sundry variations of same as may be appropriate indifferent exemplary embodiments of the present invention.

As shown in FIG. 16, exemplary pseudocode for the basic processes Clip1650, BlendFifo 1655 and Decoder 1660, can be as follows:

Clip

-   -   getClip( )    -   GetMetadata( )    -   getFrame( )

BlendFifo

-   -   Create( )    -   Destroy( )    -   Decode( )    -   InsertFrame(frame)

Decoder

-   -   Decode( )    -   Read Frame(frame)    -   Write Frame(frame)    -   SetAudioLevel(level)

It is further noted that the methods and techniques according toexemplary embodiments of the present this invention include and supportthe simultaneous decode of two clips or streams on a client device withlive cross-fade or effects between them. This could be between any twoor more elements included in a given playlist. The systems and methodsdescribed herein can accommodate multiple hardware or software decoders.In particular, a client side agent running with Device, Network, UserProfile and Playlist data is able to ascertain the availability ofsystem resources, and from these decide when to initiate a download ordownloads, and in what sequence. In the event that there are two or moredecoding systems (either hardware or software) the client agent caninitiate the download of several clips and initiate the decoding of themahead of their play time. It then becomes a simple matter to blend thesein accordance with various blending algorithms selected based on theTransition Type, intro/outro data, Playlist and User Preferences.

As noted, it is understood that the present invention is not limited toeither audio or cross-fades on a particular type of device, but ratherencompasses a wide variety of device types (iPhone, iPad, etc) and awide variety of domains in the media/entertainment sector (e.g., audio,video, computer graphics, gaming, etc.).

The above-presented description and figures are intended by way ofexample only and are not intended to limit the present invention in anyway except as set forth in the following claims. It is particularlynoted that the persons skilled in the art can readily combine thevarious technical aspects of the various elements of the variousexemplary embodiments that have been described above in numerous otherways, all of which are considered to be within the scope of theinvention.

1-20. (canceled)
 21. A method for adjusting audio playback comprising:downloading a first audio clip, a second audio clip to be playedfollowing the first audio clip, and a clip transition to be played at aboundary between the first and second audio clips at a playoutcontroller; storing the first and second audio clips, and the cliptransition at an input buffer; decoding the first and second audioclips, and the clip transition at a decoder; and adjusting a downloadtiming and one or more characteristics of the clip transition based atleast in part on a performance profile of the playout controller and/orthe input buffer using a device performance software agent.
 22. Themethod of claim 21, wherein the download timing and one or morecharacteristics of the clip transition are adjusted further in part on adevice profile.
 23. The method of claim 21, wherein the download timingand one or more characteristics of the clip transition are adjustedfurther in part on metadata associated with the first and/or secondaudio clips.
 24. The method of claim 21, wherein the decoder isconfigured to decode the audio clips at a faster than real time rate.25. The method of claim 21, further comprising: generating a new signallevel, at a cross-fade component, from uncompressed signal levels of twosource frames from the first and second audio clips, for a resultingframe of the clip transition based at least in part on a cross-fade mix,blend or other transition effect blend rate.
 26. The method of claim 21,wherein the one or more characteristics adjustable by the deviceperformance software agent include a real-time management of thedownloading and/or decoding of the audio clips based on system resourceavailability.
 27. A method for adjusting audio playback comprising:downloading a first audio clip, a second audio clip to be playedfollowing the first audio clip, and a clip transition to be played at aboundary between the first and second audio clips at a playoutcontroller; storing the first and second audio clips, and the cliptransition at an input buffer; decoding the first and second audioclips, and the clip transition at a first decoder and a second decoder;and adjusting a download timing and one or more characteristics of theclip transition based at least in part on a performance profile of theplayout controller and/or the input buffer using a device performancesoftware agent.
 28. The method of claim 27, wherein the download timingand one or more characteristics of the clip transition are adjustedfurther in part on a device profile.
 29. The method of claim 27, whereinthe download timing and one or more characteristics of the cliptransition are adjusted further in part on metadata associated with thefirst and/or second audio clips.
 30. The method of claim 27, wherein thedecoder is configured to decode the audio clips at a faster than realtime rate.
 31. The method of claim 27, further comprising: generating anew signal level, at a cross-fade component, from uncompressed signallevels of two source frames from the first and second audio clips, for aresulting frame of the clip transition based at least in part on across-fade mix, blend or other transition effect blend rate.
 32. Themethod of claim 27, wherein the one or more characteristics adjustableby the device performance software agent include a real-time managementof the downloading and/or decoding of the audio clips based on systemresource availability.